﻿
using KC.Service.Core.WebApiService.Business;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;

namespace KC.Service.Core.Util
{
    public static class DependencyInjectUtil
    {
        public static void InjectService(IServiceCollection services)
        {
            services.AddSingleton<ITenantUserApiService, TenantUserApiService>();
            services.AddSingleton<IApplicationApiService, ApplicationApiService>();
            services.AddSingleton<IGlobalConfigApiService, GlobalConfigApiService>();

            services.AddScoped<IAccountApiService, AccountApiService>();
            services.AddScoped<IConfigApiService, ConfigApiService>();
            services.AddScoped<IDictionaryApiService, DictionaryApiService>();
            services.AddScoped<IMessageApiService, MessageApiService>();
            services.AddScoped<IWorkFlowApiService, WorkFlowApiService>();
            services.AddScoped<ITestComApiService, TestComApiService>();

        }
    }
}
